<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
    <style type="text/css">
        *{
            margin: 0;
            padding: 0;
        }
        div{
            width: 100px;
            height: 100px;
            background-color: greenyellow;
            position : absolute;
            top: 0;
            left: 0;
        }
    </style>
<body>
    <div class="box1" id="box1"></div>
    <div class="box2"></div>
    <div class="box3"></div>
    <div class="box4"></div>
    <script type="text/javascript" src="../运动框架/myanimate-1.0.js"></script>
    <script type="text/javascript">
        var box1 = document.getElementById("box1");
        animate(box1,{"left":500,"top":300,"opacity":0.5},2000,function(){});
    </script>
</body>
</html>